Skip to main content

Copy Folder

AutomatR.DefaultActivities.FileAndFolder.CopyFolder

The "Copy Folder" activity in AutomatR enables you to copy a specified folder from one location to another. This activity simplifies the process of duplicating entire folders, enhancing automation workflows that involve folder management.

Properties

NameDescription
Input
Destination PathSpecifies the destination path where the folder should be copied to. Enter the full path of the destination folder on your local drive, or use the browse option. Example: "D:\CopyFolder\". String variables containing the destination folder path.
Include SubfoldersIf checked, enables you to copy all the subfolders from the source folder to the destination folder. Boolean variables or arguments to control the inclusion of subfolders.
OverwriteIf checked, enables you to copy a folder with the same name as the one in the destination location, overwriting existing content. Boolean variables or arguments to control the overwrite behavior.
Source PathSpecify the full path of your local system for the folder to be copied. For example, "E:\FolderToBeCopied". String variables containing the source folder path.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Copy Folder" activity. This can be useful for handling synchronization issues. Integer variables or arguments containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.

How to use:

  1. Drag and drop the "Copy Folder" activity onto the workflow.
  2. Configure the properties by specifying the source path, destination path, and optionally, set the inclusion of subfolders and overwrite behavior.
  3. Optionally, configure the delay and customize the display name.
  4. Execute the workflow to copy the specified folder to the destination location.

Example: Consider an example where the "Copy Folder" activity is used to copy a folder named "FolderToBeCopied" from one location to another:

Copy Folder:
Display Name: "Copy My Folder"
Source Path: "E:\FolderToBeCopied"
Destination Path: "D:\CopyFolder\"
Include Subfolders: True
Overwrite: False

In this example, the activity copies the entire contents of the "FolderToBeCopied" folder from the "E" drive to the "CopyFolder" directory on the "D" drive. Subfolders are included in the copy, and existing files are not overwritten, as the overwrite option is set to false.